<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;


// 角色表
class BarRole extends Model
{

    public function permissions(){

        return $this->belongsToMany(BarPermission::class,'bar_role_permissions','bar_role_id','bar_permission_id');

    }

}
